// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Vuex from 'vuex'
import {ToastPlugin, ConfirmPlugin, LoadingPlugin } from 'vux'
import App from './App'
import router from './router'
import store from './vuex/index'
import AlloyFinger from './alloy_finger'
import AlloyFingerVue from './alloy_finger_vue.js'
import VueScroller from 'vue-scroller'

import 'vux/src/styles/reset.less'

const FastClick = require('fastclick')

Vue.use(Vuex)
Vue.use(AlloyFingerVue, {
  AlloyFinger: AlloyFinger
})
Vue.use(VueScroller)
Vue.use(ToastPlugin)
Vue.use(LoadingPlugin)
Vue.use(ConfirmPlugin)
FastClick.attach(document.body)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
